Hệ thống bổ nhiệm bác sĩ trong PHP bằng mã nguồn

1 <?php include('header.php'); ?>
2
3
4
5
6
7     <!--
this is for donor registraton -->
8     <div
class="login" style="background-color:#fff;">
9         <h1
class="text-center" style="background-color:#0616BC;color: #fff;padding: 5px;">User Login</h1>
10         
11         <form action=
"" method="post" class="">
12             <div
class="col-md-12">
13                 <div
class="col-md-4"></div>
14                 <div
class="col-md-4">
15                     <label>
16                             Email: <input type=
"email" name="email" placeholder="email" required>
17                     </label><br><br>
18                     <label>
19                             Password: <input type=
"password" name="password" placeholder="password" required>
20                     </label><br><br>
21                     
22                     <!-- <button name=
"submit" type="submit">Login</button> <br> -->
23                     
24                         <input type=
"submit" value="Login" name="submit">
25                     
26                     <!-- login validation -->
27             <?php
28         
29                 
// $_SESSION['userstatus']="";
30
31                             include(
'config.php');
32                             
if(isset($_POST["submit"])){
33                             $sql=
"SELECT * FROM donarregistration WHERE email= '" . $_POST["email"]."' AND password= '" . $_POST["password"]."'";
34
35                             $result = $conn->query($sql);
36
37                                     
if ($result->num_rows > 0) {
38                                             
// $_SESSION["email"]= $_POST["email"];
39                                             
// $_SESSION['userstatus']= "yes";
40                                             echo
"<script>location.replace('donor/index.php');</script>";
41                                                 
// echo "u are supposed to redirect to ur profile";
42                                         }
else {
43                                             echo
"<span style='color:red;'>Invalid username or password</span>";
44                                         }
45                         $conn->close();
46                     }
47                     
48             ?>
49             <!-- login validation End-->
50             
51             
52         </form><br><br>
53             
54
55                     Not A User?<a href=
"allregistration.php" style="color:#C30">Click here</a> to Register.
56
57
58
59             
60
61                 </div>
62                 <div
class="col-md-4"></div>
63             </div> <!-- col-md-
12 -->
64             
65         
66     </div>
67     
68     
69
70     
71  <?php include(
'footer.php'); ?>
72
73
74     
75     </div><!-- containerFluid Ends -->
76
77
78
79
80     <script src=
"js/bootstrap.min.js"></script>
81
82
83  
84             
85
86
87
88     
89 </body>
90 </html>


Gõ tìm kiếm nhanh...